import Vue from 'vue'
import VueLazyload from 'vue-lazyload'

let loaded = null;

Vue.prototype.imgEvents = {
    setLoaded: function (call) {
        loaded = call;
    },
};

Vue.use(VueLazyload, {adapter: {
    loaded () {
        if(loaded) {
            loaded()
        }
    },
}});

export default VueLazyload;